﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Media;

namespace AnimationViewControls
{
    public class MoveAdorner:Adorner
    {
        private VisualCollection visualCollection=null;
        public MoveAdorner(UIElement adornedElement):base(adornedElement)
        {
            visualCollection = new VisualCollection(this);
        }

        public void AddElement(DependencyObject obj)
        {
            var visualObj = obj as Visual;
            if (visualObj==null)
            {
                return;
            }
            //visualCollection.Add(visualObj);
        }

        protected override int VisualChildrenCount => visualCollection.Count;

        protected override Visual GetVisualChild(int index)
        {
            return visualCollection[index];
        }
    }
}
